package com.ycrlkj.android.modulescore.main.entity.validate;

import android.text.TextUtils;
import com.ycrlkj.android.modulescore.main.entity.Vehicle;

public class VehicleValidate {

    public static String validateForm(Vehicle form){

        String brandName = form.getBrandName();
        if(TextUtils.isEmpty(brandName)){
            return "车辆品牌必须填写";
        }

//        String modelName = form.getModelName();
//        if(TextUtils.isEmpty(modelName)){
//            return "车辆型号必须填写";
//        }
//
//        String drivingCode = form.getDrivingCode();
//        if(TextUtils.isEmpty(drivingCode)){
//            return "行驶证编号必须填写";
//        }
//
//        String transportationCode = form.getTransportationCode();
//        if(TextUtils.isEmpty(transportationCode)){
//            return "运输许可证编号必须填写";
//        }

        return null;
    }

}
